package com.hkts.management.message.fegin;

import com.hkts.management.common.utils.Result;
import com.hkts.management.common.vo.UserBasicInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassNameAuthFeign
 * @Description
 * @Author yck
 * @Date2021-03-11 9:11
 * @Version V1.0
 **/
@FeignClient(value="management-authentication",configuration = FeignHeadersInterceptor.class)
public interface IUserAppServiceClient {
    @RequestMapping(value = "/authentication/sendMessageByUserId",method = RequestMethod.GET)
    Result sendMessageByUserId(@RequestParam(value = "userId") String userId, @RequestParam(value = "msg") String msg);

    @RequestMapping(value = "/authentication/remoteUserBasicInfo",method = RequestMethod.GET)
    Result<UserBasicInfoVo> remoteUserBasicInfo();

}
